home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Qu.......ke Neue Level
/
KroGer Software GmbH - Qu_ke.iso
/
UNPACKED
/
WAFFEN
/
PRG12
/
SHRAPNEL.QC
< prev
next >
Wrap
Text File
|
1996-08-08
|
619b
|
28 lines
void(entity targ,entity inflictor,entity attacker,float dmg) T_Damage;
void(float dmg) spawn_touchblood;
void() ShrapnelTouch =
{
if (other.solid == SOLID_TRIGGER)
return;
if (pointcontents(self.origin) == CONTENT_SKY)
{
remove(self);
return;
}
if (other.takedamage)
{
spawn_touchblood(20);
T_Damage(other,self,self.owner,20);
}
else
{
WriteByte(MSG_BROADCAST,SVC_TEMPENTITY);
WriteByte(MSG_BROADCAST,TE_SUPERSPIKE);
WriteCoord(MSG_BROADCAST,self.origin_x);
WriteCoord(MSG_BROADCAST,self.origin_y);
WriteCoord(MSG_BROADCAST,self.origin_z);
}
remove(self);
};